home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HyperLib 8
/
HYPERLIB-1993-VOL8-CD1.ISO.7z
/
HYPERLIB-1993-VOL8-CD1.ISO
/
Wingz
/
Demo for 9inch Monitor
/
WZAP
/
MITSUM.WKZ
(
.txt
)
< prev
next >
Wrap
Wingz Spreadsheet
|
1992-07-21
|
44KB
|
354 lines
WNGZWZSS0120
AUTOSAVE.WKZ
System @"
~" @
System @
Osaka @
System
MITSUM.WKZ
folder
89-10201
[1800ZA
TYPE C
TYPE D
TYPE E
AM/FM
[1800ZA
[2000GT
[2000GT limited
[2000GT TURBO
[2000ZA
[2500GT
MITSUM.WKZ
MITSUM.WKZ:do_it = 0
5MITSUM.WKZ:volume = ctvalue(3,0) MITSUM.WKZ:do_it = 1
MITSUM.WKZ5
MITSUM.WKZ:do_it = 0
UMITSUM.WKZ:selection = ctvalue(3,0) call MITSUM.WKZ:store_data() MITSUM.WKZ:do_it = 1
add list box items "
]MITSUM.WKZ:selection = ctvalue(3,0) call MITSUM.WKZ:get_data() call MITSUM.WKZ:set_controls()
7MITSUM.WKZ:do_it = 2 call MITSUM.WKZ:store_data() close
>MITSUM.WKZ:do_it = 3 MITSUM.WKZ:selection = ctvalue(3,0) close
[MITSUM.WKZ:do_it = 4 call MITSUM.WKZ:store_data() MITSUM.WKZ:selection = ctvalue(3,0) close
MITSUM.WKZ
folder
offset_x
offset_y
folder
do_it
selection
loop_flag
serial
product_name
price
pricedown_limit
volume
offset_x
offset_y
do_volume]
do_select
create_dialog
paste_data
add_data
delete_data|
reprace_data
get_dataA
store_data
enter_valueF
set_controls
search_name
MITSUM.WKZ
copyright (C) 1992 ASCII Corporation
Auther taku-k
define folder, flag, do_it, selection, i, loop_flag
define serial, product_name, price, pricedown_limit
define volume
define offset_x, offset_y
on activate
if not flag
folder = left(name(), length(name()) - length("MITSUM.WKZ") )
offset_x = 1
offset_y = 100
flag = 1
zoom window
go to cell a19
end if
repaint window
end activate
function do_volume(n)
volume = indirect(makecell(4,25+n))
new modal dialog box at(-1,-1)(2.6inch,1.1inch)
add push button "
g", "
" at (1.3inch,0.1inch)+(0.9inch,1.0inch)
dialog cancel push button
script "MITSUM.WKZ:do_it = 0"
select control 1
dialog default push button
script "MITSUM.WKZ:volume = ctvalue(3,0) MITSUM.WKZ:do_it = 1"
add number wheel at (0.1inch,0.2inch)+(0.9inch,0.7inch)
number wheel range 1 to 100
number wheel step 1
number wheel precision 0
number wheel position volume
show control title "
use dialog box
if do_it
put volume into makecell(4,25+n)
end if
end function
function do_select(n)
product_name = indirect(makecell(3,25+n))
price = indirect(makecell(5,25+n))
pricedown_limit = indirect(makecell(6,25+n))
loop_flag = 1
while loop_flag
call create_dialog()
case do_it
when 1
call paste_data(n)
loop_flag = 0
exit case
when 2
call add_data()
exit case
when 3
call delete_data()
exit case
when 4
call reprace_data()
exit case
otherwise { cancel button }
go to window MITSUM.WKZ:folder & "MITSUM.WKZ"
loop_flag = 0
end case
end while
repaint window
end function
function paste_data(n)
if product_name = "0"
for i = 3 to 7
put "" into makecell(i,25+n)
end for
else
put product_name into makecell(3,25+n)
put price into makecell(5,25+n)
put pricedown_limit into makecell(6,25+n)
put "=D" & 25+n & "*E" & 25+n & "*F" & 25+n into makecell(7,25+n)
end if
end function
function add_data()
repaint off
select range makerange(1, 100, 32768, 100)
insert
put product_name into makecell(offset_x+1, offset_y)
put price into makecell(offset_x+2, offset_y)
put pricedown_limit into makecell(offset_x+3, offset_y)
unselect
go to cell a19
repaint on
end function
X ->
function delete_data()
repaint off
select range makerange(1, offset_y+selection-1, 32768, offset_y+selection-1)
delete
unselect
go to cell a19
repaint on
end function
function reprace_data()
put product_name into makecell(2,offset_y+selection-1)
put price into makecell(3,offset_y+selection)
put pricedown_limit into makecell(4,offset_y+selection)
end function
function get_data()
product_name = indirect(makecell(2,offset_y+selection-1))
price = indirect(makecell(3,offset_y+selection-1))
pricedown_limit = indirect(makecell(4,offset_y+selection-1))
end function
function store_data()
product_name = ctstring(4,0)
price = enter_value(ctstring(5,0))
pricedown_limit = ctvalue(6,0)/100
end function
function set_controls()
select control 4
field text product_name
select control 5
field text nformat(price,512+32) {
select control 6
number wheel position pricedown_limit*100
end function
function enter_value(st)
define i, temp
temp = ""
for i = 1 to length(st)
temp = temp & if(code(mid(st,i-1,1))>= code("0") and code(mid(st,i-1,1))<= code("9"),mid(st,i-1,1),"")
end for
return value(temp)
end function
function create_dialog()
new modal dialog box at(-1,-1)(5inch,4.1inch)
add push button "
g", "
" at (3.9inch,2.9inch)+(1.0inch,1.2inch)
dialog cancel push button
script "MITSUM.WKZ:do_it = 0"
select control 1
dialog default push button
script "MITSUM.WKZ:selection = ctvalue(3,0) call MITSUM.WKZ:store_data() MITSUM.WKZ:do_it = 1"
{control 3}
add list box "" at (0.1inch, 0.1inch)+(4.8inch,2.3inch)
i = 0
while not isblank(range(makecell(offset_x+1, offset_y+i )))
run "add list box items """ &
indirect(makecell(MITSUM.WKZ:offset_x+1, MITSUM.WKZ:offset_y+i)) & """"
i = i + 1
end while
add list box items "(
show scroll bar list box
if search_name()
current list box item product_name
end if
script "MITSUM.WKZ:selection = ctvalue(3,0)" &
" call MITSUM.WKZ:get_data() call MITSUM.WKZ:set_controls()"
{control 4}
add field at ( 0.1inch, 2.5inch)+(4.8inch, 0.3inch)
show control name "
{control 5}
add field at ( 0.1inch, 3.0inch)+(2.3inch, 0.3inch)
show control name "
{control 6}
add number wheel at ( 0.1inch, 3.5inch)+(1.8inch, 0.4inch)
show control name "
number wheel range 0 to 100
number wheel precision 0
number wheel step 1
{control 7-9}
add push button "
X" at (2.5inch,2.9inch)+(1.0inch,1.1inch)
select control 7
script "MITSUM.WKZ:do_it = 2 call MITSUM.WKZ:store_data() close"
select control 8
script "MITSUM.WKZ:do_it = 3 MITSUM.WKZ:selection = ctvalue(3,0) close"
select control 9
script "MITSUM.WKZ:do_it = 4 call MITSUM.WKZ:store_data() MITSUM.WKZ:selection = ctvalue(3,0) close"
call set_controls()
use dialog box
end function
function search_name()
define i
i = 0
while not isblank(range(makecell(offset_x+1, offset_y+i )))
if indirect(makecell(offset_x+1, offset_y+i)) = product_name
return 1
end if
i = i + 1
end while
return 0
end function
Osaka
vtton
helpdialog
on mouseup
call helpdialog()
end mouseup
function helpdialog()
define i
new modal dialog box at (-1, -1)(6inch, 4.1inch)
add push button "
" at (2.5inch, 3.7inch)+(1.0inch, 0.35inch)
dialog default push button
add field at (.1inch, .1inch) (5.9inch, 3.5inch)
show scroll bar field
field text "
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
BREP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
BREP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
REP" options "A"
replace field text "REP" with "
" options "A"
for i = 1 to 13
find field text "
" options "A"
text style "B"
end for
find field text "
g" options "A"
unselect
{ lock field text}
repaint selections off
use dialog box
repaint selections on
end function
Osaka
Button
hide controls
print dialog
show controls
Osaka
New Button
New Button
MITSUM.WKZ
do_volumeon mouseup
call MITSUM.WKZ:do_volume(int( mousey() / controlheight() * 12))
end mouseup
Osaka
System
New Button
New Button
MITSUM.WKZ
do_selecton mouseup
call MITSUM.WKZ:do_select(int( mousey() / controlheight() * 12))
end mouseup
Osaka
System
EXITButton
exit_buttonrepaint object "EXIT"
close now
on repaint
call jtf:exit_button()
end repaint
Osaka
System
homeButton
home_action
home_buttoncall jtf:home_action()
on repaint
call jtf:home_button()
end repaint
Osaka
System
Osaka
Chicago
Chicago
Chicago
Osaka